<?php
/**
 * View do formulário de usuario
 * @filesource  06/04/2011
 * @author      Estrada Virtual <http://estradavirtual.com.br>
 * @copyright   Copyright <2011> Estrada Virtual
 * @package     <<application>>
 * @subpackage  <<application>>.application.views
 * @version     $Id$
 */
 ?>
<div class="ev-formulario">
    <h1><?php echo $this->translate('id_usuario'); ?></h1>
    <form action="<?php echo $this->baseUrl() ?>/corporativo/usuario/gravar" method="post" name="formulario" id="formulario">
        <input type="hidden" name="id_usuario" id="id_usuario" value="<?php echo $this->row->id_usuario; ?>" />

        <label for="st_nome"><?php echo $this->translate('st_nome'); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
        <input class="text ui-widget-content ui-corner-all required" type="text" name="st_nome" id="st_nome" value="<?php echo $this->row->st_nome; ?>" title="<?php echo $this->translate("st_nome"); ?>"  maxlength="150" /><br />

        <label for="st_login"><?php echo $this->translate('st_login'); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
        <input class="text ui-widget-content ui-corner-all required" type="text" name="st_login" id="st_login" value="<?php echo $this->row->st_login; ?>" title="<?php echo $this->translate("st_login"); ?>"  maxlength="45" /><br />
<?php /*
        <label for="st_senha"><?php echo $this->translate('st_senha'); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
        <input class="text ui-widget-content ui-corner-all  required " type="text" name="st_senha" id="st_senha" value="<?php echo $this->row->st_senha; ?>" title="<?php echo $this->translate("st_senha"); ?>"  maxlength="45" /><br />
*/ ?>

        <label for="dt_cadastro"><?php echo $this->translate('dt_cadastro'); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
        <input class="text ui-widget-content ui-corner-all required data" type="text" name="dt_cadastro" id="dt_cadastro" value="<?php echo $this->dateFormat($this->row->dt_cadastro); ?>" title="<?php echo $this->translate("dt_cadastro"); ?>"   /><br />

        <label for="st_email"><?php echo $this->translate('st_email'); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
        <input class="text ui-widget-content ui-corner-all required" type="text" name="st_email" id="st_email" value="<?php echo $this->row->st_email; ?>" title="<?php echo $this->translate("st_email"); ?>"  maxlength="200" /><br />

        <label for="bo_admin"><?php echo $this->translate('bo_admin'); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
        <input class="text ui-widget-content ui-corner-all required" type="text" name="bo_admin" id="bo_admin" value="<?php echo $this->row->bo_admin; ?>" title="<?php echo $this->translate("bo_admin"); ?>"   /><br />

        <label for="bo_admin"><?php echo $this->translate('vl_hora'); ?>&nbsp;: </label>
        <input class="vl_hora ui-widget-content ui-corner-all" type="text" name="vl_hora" id="vl_hora" value="<?php echo $this->row->vl_hora; ?>" title="<?php echo $this->translate("vl_hora"); ?>"/><br />

        <label for="vl_salario"><?php echo $this->translate('vl_salario'); ?>&nbsp;: </label>
        <input class="text ui-widget-content ui-corner-all" type="text" name="vl_salario" id="vl_salario" value="<?php echo $this->row->vl_salario; ?>" title="<?php echo $this->translate("vl_salario"); ?>"/><br />

        <label for="qt_horas_mes"><?php echo $this->translate('qt_horas_mes'); ?>&nbsp;: </label>
        <input class="text ui-widget-content ui-corner-all" type="text" name="qt_horas_mes" id="qt_horas_mes" value="<?php echo $this->row->qt_horas_mes; ?>" title="<?php echo $this->translate("qt_horas_mes"); ?>"/><br />

        <div id="botoesAcao">
            <input type="submit" class="btSalvar" name="enviar" id="enviar" value="Enviar" />
            <input type="button" class="btExcluir" name="cancelar" id="cancelar" value="Cancelar" />
        </div>
    </form>
</div>

<script type="text/javascript">
    $().ready(function() {
        $("form").validate();
        $('#cancelar').click(function(){
            window.location = "<?php echo $this->baseUrl() ?>/corporativo/usuario";
        });
    });
</script>